package tests;
import tester.*;

/**
 * Copyright 2007, 2008 Viera K. Proulx
 * This program is distributed under the terms of the 
 * GNU Lesser General Public License (LGPL)
 */

/**
 * The simplest examples of the use of <code>Tester</code>
 * @author Viera K. Proulx
 */
class SimpleExamples{
  String hello = "hello";
  String world = "world";
  int n = 5;
  
  /** 
   * Illustrate the comparison of integers and <code>String</code>s.
   * @param t the instance of <code>Tester</code> that runs the tests.
   */
  void testStrings(Tester t){
    t.checkExpect(5, new Integer(5));
    t.checkExpect(hello.equals(world), false);
    t.checkExpect(hello.length(), world.length(), "OK");
    //t.checkExpect(hello, world, "will fail");
  }
}